package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the per_pms_login database table.
 * 
 */
@Entity
@Table(name="per_pms_login")
@NamedQuery(name="PerPmsLogin.findAll", query="SELECT p FROM PerPmsLogin p")
public class PerPmsLogin implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int loginid;

	private String loginnet;

	private Timestamp logintime;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp;

	public PerPmsLogin() {
	}

	public int getLoginid() {
		return this.loginid;
	}

	public void setLoginid(int loginid) {
		this.loginid = loginid;
	}

	public String getLoginnet() {
		return this.loginnet;
	}

	public void setLoginnet(String loginnet) {
		this.loginnet = loginnet;
	}

	public Timestamp getLogintime() {
		return this.logintime;
	}

	public void setLogintime(Timestamp logintime) {
		this.logintime = logintime;
	}

	public PerPmsEmp getPerPmsEmp() {
		return this.perPmsEmp;
	}

	public void setPerPmsEmp(PerPmsEmp perPmsEmp) {
		this.perPmsEmp = perPmsEmp;
	}

}